package com.cn.ant.modules.quartz;

import com.cn.ant.common.utils.DateUtils;
import com.cn.ant.modules.volunteer.service.VolunteerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * ClassName:QuartzService
 * Function:定时任务
 * Date: 2015/11/4 8:03
 *
 * @author huanggenhua
 * @version 1.0
 * @since JDK 1.6
 */
public class QuartzService {
    private static Logger logger = LoggerFactory.getLogger(QuartzService.class);
    @Autowired
    private VolunteerService volunteerService;

    public void deleteUnFavorite() {
        logger.info("开始执行删除未收藏的志愿组合,开始时间:" + DateUtils.getCurrDate());
        volunteerService.deleteUnFavorite();
        logger.info("结束执行删除未收藏的志愿组合,结束时间:" + DateUtils.getCurrDate());
    }

}
